-
Home
-
Jigoshop eCommerce
-
2.1.18 (latest)
-
Code
-
Classes
- Cart
Total Complexity |
48 |
Dependencies |
9 |
Dependents |
14 |
Total lines |
250 |
Lines of code |
139 |
Logical lines of code |
82 |
Comment lines |
55 |
Methods |
13 |
Properties |
1 |
Methods 13
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
addItem() |
A |
48 |
11 |
30 |
updateQuantity() |
A |
51 |
9 |
24 |
addCoupon() |
A |
53 |
9 |
20 |
checkStock() |
S |
59 |
4 |
15 |
recalculateCoupons() |
S |
66 |
3 |
9 |
removeAllCouponsExcept() |
S |
68 |
3 |
7 |
removeCoupon() |
S |
69 |
2 |
7 |
restoreState() |
S |
70 |
2 |
6 |
__construct() |
S |
80 |
1 |
3 |
isEmpty() |
S |
76 |
1 |
4 |
getCoupons() |
S |
82 |
1 |
3 |
hasCoupons() |
S |
80 |
1 |
3 |
getStateToSave() |
S |
66 |
1 |
8 |